<div id="title_right">
	<p id="title_right_left"></p>
	<div id="title_right_center">
		<p class="chu_title">DANH SÁCH THÀNH VIÊN HỖ TRỢ ONLINE</p>
	</div>
	<p id="title_right_right"></p>
</div>
<?php
	if($data)
	{
?>

<table class="table">
	<tr class="mau2">
		<td>STT</td>
		<td>Nick yahoo</td>
		<td>Họ tên</td>
		<td>Ẩn hiện</td>
		<td><img src="public/images/b_edit.png" /> Sửa</td>
		<td><img src="public/images/b_drop.png" /> Xóa</td>
	</tr>
	<?php
	$i=1;

	foreach ($data['list'] as $key => $value) {

		if($i%2==0){
			echo "<tr class='mau'>";
		}else
		{
			echo "<tr>";
		}
		?>
		<td><?php echo $i;?></td>
		<td><?php echo $value['Nick'];?></td>
		<td><?php echo $value['Ten'];?></td>
		<td><?php
					if($value['AnHien'] == 1){
						echo 'Hiện';
					}
					else 
					{
						echo 'Ẩn';
					}
					?>
		 </td>
		 <td><a href="admin.php?mod=updatehotro&ma=<?php echo $value['MaHT']?>">
			<img src="public/images/b_edit.png" /> </a></td>
	<td><a href="admin.php?mod=delhotro&ma=<?php echo $value['MaHT']?>">
			<img src="public/images/b_drop.png" /> </a></td>
				</tr>
		<?php 
		$i++;
	} ?>

		<tr> 
			<td colspan = "6"> <button onclick = "window.location.href='admin.php?mod=addhotro'"> Thêm Mới</button></td>
		</tr>
		</table>
<?php 
	}
?>
